import request from '@/config/axios'

export const getList = async () => {
  return await request.get({ url: '/bpm/model-template/simple-list'})
}

export const getXML = async (id: number) => {
  return await request.get({ url: '/bpm/model-template/get-xml?id=' + id })
}

export const active = async (data) => {
  return await request.post({ url: '/bpm/model/active', data })
}
